package com.guigu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.PurchaseOrder;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 采购单表 服务类
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
public interface PurchaseOrderService extends IService<PurchaseOrder> {

    public PurchaseOrder getEndPurchaseOrder();

    public int addPurchaseOrder(PurchaseOrder purchaseOrder);

    public PurchaseOrder getPurchaseOrderBySupplierId(Integer id);

    List<PurchaseOrder> getPurchaseReview(HashMap<String, Object> map);

    public PurchaseOrder getPurchaseOrderBypurchaseOrderNumber(String purchaseOrderNumber);

    public List<PurchaseOrder> selectAllPurchaseOrder(HashMap<String, Object> map);
    Page<PurchaseOrder> getSupplierOrderBySupplierId(Integer supplierId, Integer currentPage, Integer pageSize);

    Integer getSupplierOrderCountBySupplierId(Integer supplierId);
}
